<h4 class="display-6 text-center my-2">Katalógus</h4>

<table class="table text-center">
    <thead>
        <tr>
            
            <ng-container *ngFor="let f of tomb">
                <th>{{f}}</th>
            </ng-container>
            
        </tr>
    </thead>

    <tbody>
        <ng-container *ngFor="let a of visszajott_adatok">
            <tr>
                <td>{{a.nev}}</td>
                <td>{{a.tipus}}</td>
                <td>{{a.maxVolt}} Volt</td>
                <td>{{a.maxAmper}} Amper</td>
                <td>{{a.hFE}}</td>
                
                <td *ngIf="emailAllapot==true;else emailNincsEllenorizve">
                    <button (click)="feldolgoz(a);" class="btn btn-sm mx-2 btn-warning">Szerk.</button>
                    <button (click)="rekordTorlese(a.key)" class="btn btn-sm mx-2 btn-warning">Törlés</button>
                </td>
                <ng-template #emailNincsEllenorizve>
                    <td>
                        ¯\_(ツ)_/¯
                    </td>
                </ng-template>

            </tr>
        </ng-container>
    </tbody>

</table>